<script>
import Common from "@/mixins/order/commonbg.js";
import OrderService from "@/api/order/OrderService.js";
import PPMForm from "@/crm3.0part7-ppm/core/ppmForm.vue";
export default {
  name: "mstp10461023",
  mixins: [PPMForm, Common],
  data() {
    return {
      //MSTP	正常变更	合同变更
      // proName: 'MSTP'
    };
  },
  async mounted() {
      debugger;
    let OldOrderInfo = await this.initCommon();
    let ordProdInsts = OldOrderInfo.ordProdInsts;
    let protList = [];
    
    ordProdInsts.forEach((item) => {
      if (item.roleCd == "0") {
        if(item.contactCd){
            this.formData["10461176-100013695"].value = item.contactCd;//原合同号
        }
      }
   });
  },

  computed: {},
  methods: {
    isModContactLimit() {
      if(this.formData["10461176-142000765"].value=='1'){
        this.SetRequired({ attrName:'合同终止日期', formkey:'10461176-142002037', reqName:'empty', reqStatus:true});
      }else{
        this.SetRequired({ attrName:'合同终止日期', formkey:'10461176-142002037', reqName:'empty', reqStatus:false});
      }
    },

  },
};
</script>